import json
import time

from ScrapyObject.items import VideoBean


def encrypt(text):
    '''
    加密
    :param text:
    :return:
    '''
    encrypted_text = ""
    for char in text:
        encrypted_text += chr(ord(char) + 1)  # 替换为ASCII码加1后的字符
    return encrypted_text


def decrypt(encrypted_text):
    '''
    解密
    :param encrypted_text:
    :return:
    '''
    text = ""
    for char in encrypted_text:
        text += chr(ord(char) - 1)  # 替换为ASCII码减1后的字符
    return text

# 读取JSON文件
def read_json_file(file_path):
    with open(file_path, 'r', encoding='utf-8') as file:
        data = json.load(file)
        return data

class VideoThreeBean:
    id = 0
    name = ''
    uName = ''
    tName = ''
    pName = ''
    vName = ''

if __name__ == '__main__':
    print('开始')
    timestamp = int(time.time())
    # jsonStr = read_json_file('D:\\aqdav1.json')
    # videoList = []
    # for i in jsonStr:
    #     i['vUrl']
    url ="https://fulizxcc16.cc/vodtype/44/"

    if "/arttype/" not in url:
        print("aaaaaaaaaa")
    endTime = int(time.time())
    print(str(endTime - timestamp))
    print('结束')
